package phaseII;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Stack;

public class PhaseIIDriver {
	
	public static void main(String[] args) throws FileNotFoundException, IOException {
		
		/*if (args.length == 0) {
			System.out.println("Please specify a miniRE file to parse.");
			return;
		}
		
		String miniREFilePath = args[0];
		if (miniREFilePath != null) {
			Parser parser = new Parser(miniREFilePath);
			
			System.out.println("\nOutput");
			parser.executeMiniREFile();
		}*/
		
		//LL1 PARSEER TESTINGGGGggggg
		LL1Parser p = new LL1Parser();
		p.readInGrammarFile("sampleText.txt");
		
		LL1Table t = p.createLL1Table();
		p.printRules();
		t.print();
	}
}
